package edu.spec.xhd.helloworld;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import edu.spec.xhd.R;


public class MainActivity extends AppCompatActivity {

    private static final String TAG = "MainActivity";

    private Button buttonConfirm;
    private Button buttonCancel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initViews();
        initListeners();
    }

    private void initViews(){
        buttonConfirm = findViewById(R.id.btn_confirm);
        buttonCancel = findViewById(R.id.btn_cancel);
    }

    private void initListeners(){
        buttonConfirm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.e(TAG, "onClick: confirm" );
            }
        });
        buttonCancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.e(TAG, "onClick: cancel" );
            }
        });
    }

}
